#!/bin/bash
PID=$1
PROCESS_KEY="$PID"
while true; do
	
	ps axj | grep -E "PID|$PROCESS_KEY"  # 保留表头并过滤目标进程
	sleep 1
done
